package com.mooc.yohoshop.ui.home;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.mooc.yohoshop.R;
import com.mooc.yohoshop.entity.BrandEntity;
import com.mooc.yohoshop.imgload.ImageLoad;

import org.jetbrains.annotations.NotNull;

public class HomeBrandAdapter extends BaseQuickAdapter<BrandEntity.Values, BaseViewHolder> {
    public HomeBrandAdapter() {
        super(R.layout.item_home_brand);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, BrandEntity.Values values) {
        ImageLoad.loadMatch(values.brand_icon,(ImageView)baseViewHolder.getView(R.id.home_brand_img));
    }
}
